package simu.testers;

import java.io.IOException;
import java.util.Scanner;

import simu.nodes.MasterNode;
import simu.nodes.Node;

public class NodesTesters {

	public static void main(String[] args) throws IOException {
		
		MasterNode myMasterNode = MasterNode.getInstance();
		
		myMasterNode.addNode(1);     // ProcNode type 
		Node tmpNode1 = myMasterNode.getNode(0);
		tmpNode1.startSensor("audio");
		tmpNode1.startSensor("video");
		tmpNode1.startSensor("picture");
		
		
		myMasterNode.addNode(1);	// SimpleNode type 
		Node tmpNode2 = myMasterNode.getNode(1);
		tmpNode2.startSensor("audio");
		tmpNode2.startSensor("video");
		tmpNode2.startSensor("picture");
		
		
		myMasterNode.addNode(3);	// APNode type 
		Node tmpNode3 = myMasterNode.getNode(2);
		tmpNode3.startSensor("audio");
		tmpNode3.startSensor("video");
		tmpNode3.startSensor("picture");
		
		String temp = "";
		Scanner in = new Scanner(System.in);
		
		while (!temp.equals("done")){
			temp = in.nextLine();
			System.out.println(temp);
		}
//		
//		System.out.println(obj.stopSensor());
		tmpNode1.stopSensors();
		tmpNode2.stopSensors();
		tmpNode3.stopSensors();
	}
	
	
}
